/*
 * Created on May 12, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package org.vectrics.skill.struts;

import java.util.List;

import org.vectrics.common.pagelist.PageList;
import org.vectrics.recruiter.RecruitServiceLocator;
import org.vectrics.skill.SkillSearchCriteria;

/**
 * @author MMoore
 */
public class SkillPageList extends PageList {
	private SkillSearchCriteria criteria = null;

	public SkillPageList(SkillSearchCriteria criteria) {
		super();
		this.criteria = criteria;
	}

	public int getTotalElementCount() {
		int count = RecruitServiceLocator.getSkillProvider().findSkillCount(criteria);
		return(count);
	}

	public List getElements(int start, int end) {
		List elements = RecruitServiceLocator.getSkillProvider().findSkills(criteria, start, end);
		return(elements);
	}

}
